package com.jianjian.dao.Impl;

import com.jianjian.dao.UserDao;
import com.jianjian.pojo.User;

import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Properties;

/**
 * @author Zsir
 * @create 2021-12-11 17:39
 */
public class UserDaoImpl implements UserDao {
private String company;
private int age;
private List<String> strList;

     //集合数据类型实体类注入
    private List<User> userList;

    //集合数据类型Map
    private Map<String,User> userMap;

    //集合properties数据类型
    private Properties properties;

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public void setStrList(List<String> strList) {
        this.strList = strList;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public void save() {
        System.out.println(properties);
        System.out.println(userMap);
        System.out.println(userList);
        System.out.println(company+"=="+age);
        System.out.println(strList);
        System.out.println("UserDao save method running....");
    }
}
